Multi-Stage Specialization with Relative Binding Times

نویسندگان

  • Mark Leone
  • Peter Lee
چکیده

Programming systems that generate code at run time o er unique opportunities for specialization. Dynamic specialization can exploit run-time values that are not available at compile time, yielding code that is superior to statically optimal code. Unfortunately, conventional formulations of binding-time analysis prove overly restrictive in such a setting. The values computed by specialized procedures are classi ed as dynamic, which prevents a useful form of multi-stage specialization. We propose a simple notion of relative binding times that allow multiple stages of specialization to be realized in a two-level lambda calculus. 1 Dynamic Specialization and Binding-Time Analysis Most partial evaluators perform specialization at compile time. However, recent research has demonstrated that it is sometimes pro table to perform specialization at later stages, such as run time [8, 7, 2, 4, 6]. Some implementations of dynamic specialization rely on a bindingtime analysis (BTA) to determine how to specialize a program when some of its variables take on xed values. BTA requires an initial binding-time division that classi es program inputs as static or dynamic. From this initial division, the BTA translates a program into a two-level language in which every subexpression is annotated with its binding time. Unfortunately, conventional BTA prevents dynamic specialization from exploiting many opportunities for optimization. This is most easily illustrated with an example: This research was partially supported by the Defense Advanced Research Projects Agency ITO under the title \The Fox Project: Advanced Language Technology for Systems Software," DARPA Order No. 8313, issued by ESC/ENS under Contract No. F19628-95-C-0050, and by the National Science Foundation under grant number CCR-9711269. The views and conclusions contained in this document are those of the authors and should not be interpreted as representing the o cial policies, either expressed or implied, of the the Defense Advanced Research Projects Agency, the National Science Foundation, or the U.S. Government.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Efficient Multi-level Generating Extensions for Program Specialization

Multiple program specialization can stage a computation into several computation phases. This paper presents an eective solution for multiple program specialization by generalizing conventional o-line partial evaluation and integrating the \cogen approach" with a multi-level binding-time analysis. This novel \multi-cogen approach" solves two fundamental problems of self-applicable partial evalu...

متن کامل

Fast Binding-Time Analysis for Multi-Level Specialization

Program specialization can divide a computation into several computation stages. We present the key ingredient of our approach to multi-level specialization: an accurate and fast multi-level binding-time analysis. Three efficient program analyses for higher-order, functional languages are presented which are based on constraint systems and run almost-linear in the size of the analyzed programs....

متن کامل

Reasoning about Hierarchies of Online Program Specialization Systems

We present the language S Graph n the core of a multi level metaprogramming environment for exploring foundational issues of self applicable online program specialization We illustrate how special purpose S Graph n primitives can be used to obtain an e cient and conceptually simple encoding of programs as data objects The key feature of the encoding scheme is the use of nu merical indices which...

متن کامل

Relation between hospital specialization with primary percutaneous coronary intervention and clinical outcomes in ST-segment elevation myocardial infarction: National Registry of Myocardial Infarction-4 analysis.

BACKGROUND Hospitals with primary percutaneous coronary intervention (PPCI) capability may choose to predominately offer PPCI to their patients with ST-segment elevation myocardial infarction (STEMI), or they may selectively offer PPCI or fibrinolytic therapy based on patient and hospital-level factors. Whether a greater level of hospital specialization with PPCI is associated with better quali...

متن کامل

A Two-Stage Green Supply Chain Network with a Carbon Emission Price by a Multi-objective Interior Search Algorithm

This paper presented a new two-stage green supply chain network, in which includes two innovations. Firstly, it presents a new multi-objective model for a two-stage green supply chain problem that considers the amount o...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1997